home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / qbfaqr01.zip / QBSPEAK1.QRM < prev    next >
Text File  |  1992-07-19  |  6KB  |  104 lines

  1. ===========================================================================
  2.  BBS: PC Connect
  3. Date: 07-16-92 (04:33)             Number: 13513
  4. From: RICH GELDREICH               Refer#: NONE
  5.   To: ALL                           Recvd: NO  
  6. Subj: PC-SPEAKER ROUTINES            Conf: (11) R-QBasic
  7. ---------------------------------------------------------------------------
  8. Here is an assembly program, callable from QB or PDS, that plays signed
  9. digitized samples in the background on the PC-Speaker. I've included
  10. the .ASM source code and an assembled .OBJ file for those that aren't
  11. lucky enough to have an assembler.
  12.  
  13. Just capture the next two messages or so, run them with in QB and unzip
  14. the file "qbtweakr.zip".
  15.  
  16. DEFINT A-Z:FOR A=0 TO 6:P(A)=2^A:NEXT
  17. OPEN "B",1,"qbtweakr.zip":B$=" ":I=1
  18. FOR A=1 TO 7310:IF L=0 THEN GOSUB G: L=6
  19. W=T\P(6-L)
  20. DO WHILE L<8: GOSUB G: W=W OR T*P(L):L=L+6: LOOP
  21. L=L-8:B$=CHR$(W AND 255):PUT #1,,B$:NEXT:END
  22. G:IF I>LEN(W$) THEN READ W$: I=1
  23. T=ASC(MID$(W$,I))-35:I=I+1:RETURN
  24. DATA"3PW#'K####C$#7L+MFDD864$a*###'X####&####0(W5(085*\G.%(W70+3#5/%(8;"
  25. DATA"V0KHKI>V6$)+T''8O`9Ab6YWCQWE1XGA7J]5D)WL%5DI:3-XW19W%UF99Y59\9IGb)"
  26. DATA"MS658WIY\%%DB]EYU%5\aY]5ZW]YUO_*9]%UY)9U9IM^S@OP?QSPOD@PH811RH>;@^"
  27. DATA"?<&Z^Wa9ZO_1OEHPHX($^,<``@H>=L><)9T`5[`?J><>&Y.WXI00@R$\;&.>-A6931"
  28. DATA"ZWA9Z-6:K`QPO+`0=#][@.^83:DNVVb:_]TUY]5)VbW3PB*W@\Ka+>JK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[_W,=X(M59T78U&KV\]V.H((BHSKHWA<Q"
  84. DATA"90;`7Y&PaQ/-]_-')URa)]5R(0WB3[4AN;C7,Z-:N;'#4>M[;2(]I0RQRDEO$T;?W]"
  85. DATA"VL/aI:L::QSZ/5OQ<N_H,_:*B4],]-MM0V[68UI[F2GD5E`I)aa]34bP7<XWKG,/3^"
  86. DATA"+)1INXUU(YO(.0]`9aBDR9Y44?ZZ8Z`aNV*,Z.>NOMN94A:9COA(_b<6R/Sa3LM=='"
  87. DATA"FQRC%]V=(O]S[66\M<X1@P:?G^-H=@M@W3D>7TDP8@WW.KJQEX/F2a-MQ7%[^@)\8>"
  88. DATA"XFR1<X)(4?bUW8OF)#>HT*Z*I.%HM=7b;3S[;TKXPa`]`9'[CN&0;6DT*2PN7RP^I;"
  89. DATA"RD\b6Mb[3.BaX>^aRR,`\Q-M>_WYA>TMB[3^$_%L$A(;V%aZ\;;aGB^K_YRR4]La1&"
  90. DATA"MXUVGX83.T9<&J()4IEK8W4]]?VT&1C884.A@0\`BK0T#]NGUV[&>6;-]V^*Z8BZWS"
  91. DATA"_A/(E2SX+;;_\LD>-R]F7-&LY6D=`45`(84(+-7TF=C3LQ;.;\9M-F<Q[VS97O`(T?"
  92. DATA"L__DHNM8QT_J\2UaP1a=I^=P]V.\Q&TTY#'7;Z&;_X3Z7;H`5ZXID6b%[WP>ZUR:0G"
  93. DATA"N$bIFH%*B[:^V*5/IN]<'?]DTY,8,a0AY3_D>2?0`C^[NKA+TT5-P49ZBFHPVSQ,C%"
  94. DATA"1$*O/_1+(`VMJ@_(/BT/R<G8D]XE]]:Y;Z[`4S^T6[V5[-@bFF5-5?G+BOV%.?.)[;"
  95. DATA"20(^\C.(.8-D8_^IAIERE82BX>aXG0,$H]@`\)'`%B8[&,7a6?(T:/b^*D5+OGTMON"
  96. 'continued...
  97.  
  98.  
  99. RBBS-UTI v2.0 :
  100.  
  101.  
  102. PCRelay:BBSBBS -> #1551 RelayNet (tm)
  103. 4.11              -* BB's BBS  from Atco, NJ  (609)768-6585 *-
  104.